import Vue from 'vue'
import {
  Popover,
  Message,
  Loading,
  Button,
  Tabs,
  TabPane,
  Form,
  FormItem,
  Cascader,
  Select,
  Option,
  Input,
  Upload,
  DatePicker,
  TimePicker,
  Tooltip,
  Menu,
  MenuItem,
  Submenu,
  Table,
  TableColumn,
  Image,
  Dropdown,
  DropdownMenu,
  DropdownItem,
  Pagination,
  Dialog,
  Tree,
  RadioButton,
  Switch,
  RadioGroup,
  Radio,
  Checkbox,
  Slider,
  Transfer,
  Notification,
  Calendar,
  Popconfirm,
  MessageBox,
  CheckboxGroup,
  Header,
  Container,
  Main,
  Aside,
  Scrollbar,
  Row,
  Col,
  Tag,
  Carousel,
  CarouselItem,
  Timeline,
  TimelineItem,
  Card,
  Avatar,
  Steps,
  Step,
  InputNumber,
  Divider
} from 'element-ui'

Vue.use(Slider).use(Checkbox).use(Switch).use(RadioGroup).use(Popover).use(Button).use(Tabs).use(TabPane).use(Form).use(FormItem).use(Cascader).use(Select).use(Option).use(
  Input).use(Upload).use(DatePicker).use(TimePicker).use(Tooltip).use(MenuItem).use(Submenu).use(Menu).use(Table).use(
  TableColumn).use(Image).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(Pagination).use(Dialog).use(Tree).use(RadioButton).use(Radio).use(Transfer).use(Calendar).use(Popconfirm)
  .use(CheckboxGroup).use(Container).use(Header).use(Main).use(Aside).use(Scrollbar).use(Row).use(Col).use(Tag).use(Carousel).use(CarouselItem).use(Timeline).use(TimelineItem).use(Card).use(Avatar)
  .use(Steps).use(Step).use(Divider).use(InputNumber)
// TableColumn.props.showOverflowTooltip.default=true
// Select.props.popperAppendToBody.default = false
// console.log(Cascader.props)
// Cascader.props.appendToBody.default = false
Vue.prototype.$message = Message
Vue.prototype.$notify = Notification
Vue.prototype.$commonToast = (content,time) => {
  Message({
    message: content,
    duration: time || 1000,
    type: '',
    center: true,
    customClass: 'toast'
  })
} // 添加错误提示
Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$alert = MessageBox.alert
Vue.prototype.$loading = Loading.service // loading层
